<template>
  <div id="app">
    <transition name="ani">
      <router-view class="page"/>
    </transition>
  </div>
</template>

<style lang="scss">
body{
  margin: 0;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
.page{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}
.ani-enter {
  transform: translate(100%);
}
.ani-enter-active {
  transition: all 1s;
}
.ani-leave-active {
  transition: all 1s;
}
.ani-leave-to {
  transform: translate(-100%) scale(0) rotate(180deg);
  opacity: 0;
}
</style>
